// 基于template/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW}}-tree/{{spinalCase ctrl.codeName}}-tree-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

class SubordinatesControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		//  树自持属性
		this.$ownKeys = [
			'sys_organization',
			'id',
			'organization_name',
			'enabled',
			'creator',
			'create_time',
			'updater',
			'update_time',
			'dc',
			'parent_id',
			'parent_name',
			'organization_number',
			'description',
			'short_name',
			'sort',
			'children',
			'parent_ids',
			'sub_ids',
		];
	}
	get id() {
		return this.$DO.id;
	}
	set id(value: any) {
		this.$DO.id = value;
	}
	get text() {
		return this.$DO.organization_name;
	}
	set text(value: any) {
		this.$DO.organization_name = value;
	}
	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}
	set organization_name(value: any) {
		this.$DO.organization_name = value;
	}
	get organization_name() {
		return this.$DO.organization_name;
	}
}
class TopOrganizationsControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		//  树自持属性
		this.$ownKeys = [
			'sys_organization',
			'id',
			'organization_name',
			'enabled',
			'creator',
			'create_time',
			'updater',
			'update_time',
			'dc',
			'parent_id',
			'parent_name',
			'organization_number',
			'description',
			'short_name',
			'sort',
			'children',
			'parent_ids',
			'sub_ids',
		];
	}
	get id() {
		return this.$DO.id;
	}
	set id(value: any) {
		this.$DO.id = value;
	}
	get text() {
		return this.$DO.organization_name;
	}
	set text(value: any) {
		this.$DO.organization_name = value;
	}
	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}
	set organization_name(value: any) {
		this.$DO.organization_name = value;
	}
	get organization_name() {
		return this.$DO.organization_name;
	}
}

export const Treeexpbar_treeControlVO = [
	{ name: 'SubordinatesControlVO', controlVO: SubordinatesControlVO },
	{ name: 'TopOrganizationsControlVO', controlVO: TopOrganizationsControlVO },
];
